package com.ruoyi.project.system.domain;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 sys_goods
 *
 * @author theme
 * @date 2020-06-23
 */
public class SysGoods extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long goodsId;

    /**
     * 部门ID
     */
    @ApiModelProperty(name = "部门ID")
    private Long deptId;

    /**
     * 部门ID
     */
    @ApiModelProperty(name = "部门名")
    private String deptName;

    /**
     * 商品名称
     */
    @ApiModelProperty(name = "商品名称")
    private String name;

    /**
     * 商品所属类目ID
     */
    @ApiModelProperty(name = "商品所属类目ID")
    private Long categoryId;

    @ApiModelProperty(name = "商品所属类目名")
    private String categoryName;

    /**
     * 商品简介
     */
    @ApiModelProperty(name = "商品简介")
    private String brief;

    /**
     * 是否上架
     */
    @ApiModelProperty(name = "是否上架")
    private Integer isOnSale;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(name = "是否上架")
    private Integer sortOrder;

    /**
     * 商品单位，例如件、盒
     */
    @ApiModelProperty(name = "商品单位，例如件、盒")
    private String unit;

    /**
     * 专柜价格
     */
    @ApiModelProperty(name = "专柜价格")
    private Double counterPrice;

    /**
     * 零售价格
     */
    @ApiModelProperty(name = "零售价格")
    private Double retailPrice;

    /**
     * 商品详细介绍，是富文本格式
     */
    @ApiModelProperty(name = "商品详细介绍，是富文本格式")
    private String detail;

    /**
     * 商品类型
     */
    @ApiModelProperty(name = "商品类型")
    private String type;

    /**
     * $column.columnComment
     */
    private String delFlag;

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public String getBrief() {
        return brief;
    }

    public void setIsOnSale(Integer isOnSale) {
        this.isOnSale = isOnSale;
    }

    public Integer getIsOnSale() {
        return isOnSale;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }

    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUnit() {
        return unit;
    }

    public Double getCounterPrice() {
        return counterPrice;
    }

    public void setCounterPrice(Double counterPrice) {
        this.counterPrice = counterPrice;
    }

    public Double getRetailPrice() {
        return retailPrice;
    }

    public void setRetailPrice(Double retailPrice) {
        this.retailPrice = retailPrice;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getDetail() {
        return detail;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("goodsId", getGoodsId())
                .append("deptId", getDeptId())
                .append("name", getName())
                .append("categoryId", getCategoryId())
                .append("brief", getBrief())
                .append("isOnSale", getIsOnSale())
                .append("sortOrder", getSortOrder())
                .append("unit", getUnit())
                .append("counterPrice", getCounterPrice())
                .append("retailPrice", getRetailPrice())
                .append("detail", getDetail())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
